package cn.xm.lingshi.dao;

import java.util.List;

import cn.xm.lingshi.pojo.DingDan;
import cn.xm.lingshi.pojo.GouWuChe;
import cn.xm.lingshi.pojo.Shop;

/**
 * 订单数据接口
 * @author 魏魁
 *
 */
public interface CartDao {
	/**
	 * 查询订单或消费记录
	 * @param userid
	 * @param type
	 * @return
	 * @throws Exception
	 */
	public  GouWuChe queryRecord(int offer, int pageSize,int userid) throws Exception;
	/**
	 * 根据订单编号查询商品
	 * @param orderid
	 * @return
	 * @throws Exception
	 */
	public List<Shop> queryShopByorder(int orderid) throws Exception;
	/**
	 * 根据购物车编号删除购物车
	 * @param cartid
	 * @return
	 * @throws Exception
	 */
	public int delCartByCartid(int userid) throws Exception;
	/**
	 * 根据购物车编号删除购物车详细表
	 * @param cartid
	 * @return
	 * @throws Exception
	 */
	public int delCartdetailByCartid(int cartid) throws Exception;
	
	
}
